package com.five.taotao.selfwidget;

import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.graphics.drawable.AnimationDrawable;
import android.os.Bundle;
import android.view.Gravity;
import android.widget.ImageView;
import android.widget.TextView;

import com.five.taotao.R;

/**
 * Created by asus on 2016/11/14.
 */
public class CustomProgressDialog extends ProgressDialog {

    public CustomProgressDialog(Context context) {
        super(context);
    }
    public CustomProgressDialog(Context context,int theme) {
        super(context,theme);
    }
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.customprogressdialog);
       //setContentView(R.layout.layout_progress);

       //setContentView(android.R.layout.alert_dialog_progress);
    }
    public static CustomProgressDialog show (Context context) {
        CustomProgressDialog dialog = new CustomProgressDialog(context,R.style.dialog);
        dialog.show();
        return dialog;
    }
}